﻿#region Header
// ------------------------ Licence / Copyright ------------------------
// 
// ScrumTable for Scrum Meeting Support
// Copyright © HSR - Hochschule für Technik Rapperswil
// All Rights Reserved
// 
// Author:
//  Michael Gfeller Silvan Gehrig Patrick Boos
// 
// ---------------------------------------------------------------------
#endregion

#region Usings

using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.TeamFoundation.WorkItemTracking.Client;

using ScrumTable.Common;
using ScrumTable.Common.Collections;
using ScrumTable.Common.Monitoring;
using ScrumTable.Common.Security;
using ScrumTable.Common.Threading;
using ScrumTable.DL.Data.Generic.Cache;
using ScrumTable.DL.Data.TFS.Bulk.Properties;
using ScrumTable.DL.Data.TFS.Bulk.Services.IterationHandling;
using ScrumTable.DL.Data.TFS.Services.Reporting;
using ScrumTable.DL.Data.TFS.Services.TeamFoundation;

#endregion

namespace ScrumTable.DL.Data.TFS.Bulk.Services
{
    /// <summary>
    /// Specifies the load token which is used for loading workitems
    /// in an async manner.
    /// </summary>
    /// <typeparam name="T">Specifies the result type.</typeparam>
    internal class WorkItemDataLoadToken<T> : ElementDataLoadToken<int, T> // there's one token for a thread
    {
        /// <summary>
        /// Specifies the work item type.
        /// </summary>
        internal CacheWorkItemType Type { get; private set; }

        internal WorkItemDataLoadToken(int workItemId, CacheWorkItemType type)
            : base(workItemId)
        {
            Type = type;
        }
    }
}